package com.zhongge.stack;

/**
 * @ClassName TestMyStack
 * @Description TODO 测试自主实现栈
 * @Author 笨忠
 * @Date 2025/8/23 8:35
 * @Version 1.0
 */
public class TestMyStack {
    public static void main(String[] args) {
        MyStack myStack = new MyStack();

        //入栈
        myStack.push(10);
        myStack.push(23);

        System.out.println(myStack.pop());
        System.out.println(myStack.peek());
        System.out.println(myStack.size());
    }
}
